<template>
    <view class="container">
      <view class="success-message">
        <image class="img" :src="icon"></image>
        <view class="success-text">充值成功</view>
        <view class="amount">
          <text class="small">￥</text>1998
        </view>
        <view class="payment-method left">
          付款方式
        </view>
        <view class="payment-method right">
         微信支付
        </view>
      </view>
      <view class="shipping-info" @click="recharge()">
        完成
      </view>
    </view>
  </template>
  
  <script>
  export default {
    data() {
      return {
        icon: this.$common.imgUrl() + '/images/success@2x.png',
        // 您可以在这里添加更多的数据绑定
      };
    },
    methods: {
      recharge(){
        // this.$common.navTo('/pages/intake/recharge/address');
        this.$common.navTo('/pages/index/home');
      }
    }
  };
  </script>
  
  <style lang="scss">
  .container {
    width: 100%;
    height: 100vh;
    // text-align: center;
    padding: 20px;
    background: linear-gradient(to bottom, #E3EAFB 0%, transparent 100%);
  }
  
  .success-message {
    width: 690rpx;
    height: 513rpx;
    background-color: #fff;
    border-radius: 20rpx;
    font-size: 24px;
    font-weight: bold;
    margin: 124rpx 0 20px 0;
    padding-top: 56rpx;
    image{
      width: 84rpx;
      height: 84rpx;
      margin: 0 303rpx ;
    }
    .success-text{
      color: #212B3D;
      font-size: 28rpx;
      text-align: center;
    }
    .amount {
      font-size: 81rpx;
      color: #212B3D;
      margin-bottom: 20px;
      text-align: center;
      margin-left: -30rpx;
    }
    .small{
      font-size: 41rpx;
    }
    .payment-method {
      font-size: 24rpx;
      margin-top: 100rpx;
      font-weight: 400;
    }
    .left{
      float: left;
      margin-left: 38rpx;
    }
    .right{
      float: right;
      margin-right: 38rpx;
    }
    
  }
  .shipping-info {
    width: 690rpx;
    height: 99rpx;
    line-height: 99rpx;
    border-radius: 10rpx;
    background-color: #034EFD;
    text-align: center;
    font-weight: 600;
    font-size: 38rpx;
    color: #FDFEFF;
  }
  
  
  </style>